package com.xoa.service.knowledge;

import com.xoa.model.knowledge.ClumnTree;
import com.xoa.model.knowledge.KnowledgeDocfile;
import com.xoa.util.LimsJson;
import com.xoa.util.common.DataTree;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface KnowlidgeService {

    // 获取栏目分类
    LimsJson getKnowledgeType(Integer parentColumnId,String colunmType);

    LimsJson getKnowledgeTypeByCode(String codeNo);

    LimsJson getColumnById(String columnId);

    // 删除栏目类型
    LimsJson delKnowledgeType(String columnIds);

    //查询sys_code中的PARENT_NO=KNOWLEDGE_COLUMN_TYPE（知识栏目类别）
    LimsJson getColumnTag(HttpServletRequest request);

    LimsJson childTree(HttpServletRequest request, String codeNo);

    //登录
    LimsJson loging(HttpServletRequest request,String account,String password);

    //验证下载权限，验证通过下载文档
    void download(HttpServletRequest request, HttpServletResponse response,Integer docId);

    //验证查看权限
    LimsJson lookFile(HttpServletRequest request,Integer docId);

    //查看当当前登录客户权限
    LimsJson getCurrentPriv(HttpServletRequest request,KnowledgeDocfile docfile,Integer page, Integer limit);

    LimsJson getCustomerTree(HttpServletRequest request);
}
